package com.example.demo.web;

import com.example.demo.dao.entity.Person;
import com.example.demo.service.PersonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping
public class PersonController {
    @Autowired
    private PersonService personService;

    @RequestMapping("/test")
    public void test() {
        Person person = new Person();
        person.setId(1L);
        person.setEmail("1247729@qq.com");
        person.setUserName("zby");
//        Person p = personService.save(person);
        personService.findOne(person, null, null, null);

        personService.findOne1();
        personService.findOne2(person);
    }
}
